function createfigure(xdata1, xdata2, colordata1, X1, Y1, S1, C1)
%CREATEFIGURE(xdata1, xdata2, colordata1, X1, Y1, S1, C1)
%  XDATA1:  xdata
%  XDATA2:  ydata
%  COLORDATA1:  colordata
%  X1:  scatter x
%  Y1:  scatter y
%  S1:  scatter s
%  C1:  scatter c

%  Auto-generated by MATLAB on 22-Apr-2021 12:57:03

% Create figure
figure1 = figure('WindowState','maximized','Name','heatmap');

% Create heatmap
heatmap(figure1,xdata1,xdata2,colordata1,...
    'MissingDataLabel','default region',...
    'GridVisible','off',...
    'MissingDataColor',[0.988235294818878 0.882352948188782 0.894117653369904],...
    'YDisplayData',{'1.1325','1.1169','1.1016','1.0865','1.0715','1.0568','1.0423','1.028','1.0139','1','0.98627','0.97274','0.95939','0.94622','0.93323','0.92042','0.90779','0.89533','0.88304','0.87092'},...
    'XDisplayData',{'0','0.113858','0.268377','0.4229','0.577418','0.731942','0.88646','1.04098','1.1955','1.35002','1.50454','1.65906','1.81359','1.9681','2.12262','2.27715','2.43166','2.58619','2.74071','2.89523','3.04975','3.20427','3.35879','3.51331','3.66783','3.82235','3.97687','4.13139','4.28591','4.44043','4.59495','4.74947','4.90399','5.05851','5.21303','5.36756','5.52208','5.6766','5.83112','5.98564','6.14016','6.29468','6.4492','6.60372','6.75824','6.91276','7.06728','7.2218','7.37632','7.53084','7.68536','7.83988','7.99441','8.14893','8.30344','8.45797','8.61249','8.76701','8.92153','9.07605','9.23057','9.38509','9.53961','9.69413','9.84865','10.0032','10.1577','10.3122','10.4667','10.6213','10.7758','10.9303','11.0848','11.2393','11.3939','11.5484','11.7029','11.8574','12.0119','12.1665','12.321','12.4755','12.63','12.7845','12.9391','13.0936','13.2481','13.4026','13.5571','13.7117','13.8662','14.0207','14.1752','14.3297','14.4843','14.6388','14.7933','14.9478','15.1023','15.2569','15.4114','15.5659','15.7204','15.875','16.0295','16.184','16.3385','16.493','16.6476','16.8021','16.9566','17.1111','17.2656','17.4202','17.5747','17.7292','17.8837','18.0382','18.1928','18.3473','18.5018','18.6563','18.8108','18.9654','19.1199','19.2744','19.4289','19.5834','19.738','19.8925','20.047','20.2015','20.356','20.5106','20.6651','20.8196','20.9741','21.1287','21.2832','21.4377','21.5922','21.7467','21.9013','22.0558','22.2103','22.3648','22.5193','22.6739','22.8284','22.9829','23.1374','23.2919','23.4465','23.601','23.7555','23.91','24.0645','24.2191','24.3736','24.5281','24.6826','24.8371','24.9917','25.1462','25.3007','25.4552','25.6097','25.7643','25.9188','26.0733','26.2278','26.3823','26.5369','26.6914','26.8459','27.0004','27.155','27.3095','27.464','27.6185','27.773','27.9276','28.0821','28.2366','28.3911','28.5456','28.7002','28.8547','29.0092','29.1637','29.3182','29.4728','29.6273','29.7818','29.9363','30.0908','30.2454','30.3999','30.5544','30.7089','30.8634','31.018','31.1725','31.327','31.4815','31.636','31.7906','31.9451','32.0996','32.2541','32.4087','32.5632','32.7177','32.8722','33.0267','33.1813','33.3358','33.4903','33.6448','33.7993','33.9539','34.1084','34.2629','34.4174','34.5719','34.7265','34.881','35.0355','35.19','35.3445','35.4991','35.6536','35.8081','35.9626','36.1171','36.2717','36.4262','36.5807','36.7352','36.8897','37.0443','37.1988','37.3533','37.5078','37.6623','37.8169','37.9714','38.1259','38.2804','38.435','38.5895','38.744','38.8985','39.053','39.2076','39.3621','39.5166','39.6711','39.8256','39.9802','40.1347','40.2892','40.4437','40.5982','40.7528','40.9073','41.0618','41.2163','41.3708','41.5254','41.6799'},...
    'YDisplayLabels',{'','','','','','','','','','','','','','','','','','','',''},...
    'XDisplayLabels',{'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',''},...
    'FontSize',14,...
    'XLabel','debt (% GDP^{ss})',...
    'OuterPosition',[0 0 1 1]);

% Create axes
axes1 = axes('Parent',figure1,...
    'Position',[0.13 0.109769484083425 0.750208333333333 0.815230515916576]);
hold(axes1,'on');

% Create scatter
scatter(X1,Y1,S1,C1,'MarkerFaceColor','flat','MarkerEdgeColor','none');

% Create ylabel
ylabel(' y^{T}','FontSize',14);

% Uncomment the following line to preserve the X-limits of the axes
% xlim(axes1,[-0.0280106735477645 41.6518715655362]);
% Uncomment the following line to preserve the Y-limits of the axes
% ylim(axes1,[0.863420314438028 1.13995100085531]);
% Set the remaining axes properties
set(axes1,'Color','none','FontSize',14,'XTick',[0 10 20 30 40]);
